package com.dsj.gxrd.modules.activity.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dsj.gxrd.common.MyBaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;

/**
 * @author songpin566
 * @date 2023/10/17
 **/
@Data
@ApiModel("代表之声")
@TableName("rd_feedback")
public class RdFeedBack extends MyBaseEntity<String> {

    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("电话号码")
    private String phone;

    @ApiModelProperty("发布")
    private String isPublic;

    @ApiModelProperty("删除标记")
    @TableLogic
    private Integer delFlag;

    @ApiModelProperty("人大常委和数字人大")
    private Integer type;

    @ApiModelProperty("提出时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate proposeTime;

    @ApiModelProperty("提出人id(创建人id)")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    @ApiModelProperty("1待处理2处理中3已处理")
    private Integer status;

    @ApiModelProperty("当前角色")
    private String currentRoleKey;



}
